package com.huang.canal.client;

import com.huang.canal.entity.ESbean;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;



@FeignClient(value = "service-edu",path = "/eduservice/edu_es")
@Component
public interface CourseClient {

    @GetMapping("/getTotal")
    public List<ESbean> getTotal();

    @GetMapping("/getOne/{id}")
    public ESbean getOne(@PathVariable("id")String id);


    @GetMapping("/getOneByteacherId/{id}")
    public List<ESbean> getOne2(@PathVariable("id") String id);





}
